import Cookies from 'js-cookie'

const TokenKey = 'zbbCxa-accessToken'
const OssUrl = 'zbbCxa-ossUrl'
const Id = 'zbbCxa-id'
const WorkerId = 'zbbCxa-workerId'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getOssUrl() {
  return Cookies.get(OssUrl)
}

export function setOssUrl(ossUrl) {
  return Cookies.set(OssUrl, ossUrl)
}

export function removeOssUrl() {
  return Cookies.remove(OssUrl)
}

export function getId() {
  return Cookies.get(Id)
}

export function setId(id) {
  return Cookies.set(Id, id)
}

export function removeId() {
  return Cookies.remove(Id)
}

export function getWorkerId() {
  return Cookies.get(WorkerId)
}

export function setWorkerId(id) {
  return Cookies.set(WorkerId, id)
}

export function removeWorkerId() {
  return Cookies.remove(WorkerId)
}